﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Web_Pages_UserControls_GetAblumUserProfiles : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HienthilistPhoto();
        }
    }

    void HienthilistPhoto()
    {

            UsersBLL userBLL = new UsersBLL();
            string tenTaiKhoan = "user";
            Users User = userBLL.GetIUsers.GetUserByUsername(tenTaiKhoan);
        
            UserProfiles UserPr = userBLL.GetIUserProfiles.GetUserProfileOfUser(User);

             

           Albums ab = userBLL.GetIAlbums.GetAlbumById(3);


            List<Photos> listab = userBLL.GetIPhotos.GetListPhotosOfAlbum(ab);

             DataList1.DataSource = listab;
            DataList1.DataBind();

           
    }


    protected void DataList1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}